package com.guoheng.safe.sys.dto.basicinfo;

import com.guoheng.safe.common.enums.FireLevelEnum;
import com.guoheng.safe.common.enums.StorageTankTypeEnum;
import com.guoheng.safe.common.validator.ValidEnum;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;

/**
 * 类功能描述:　StorageTankAreaUpdateDTO
 *
 * @author Eternal
 * @date 2019-23-18 14:23
 */
@Data
public class StorageTankAreaUpdateDTO {

    @PositiveOrZero
    @NotNull
    private Integer id;

    @PositiveOrZero
    @NotNull
    private Integer areaNo;

    @NotBlank
    @Size(max = 32)
    private String areaName;

    @NotBlank
    @Size(max = 32)
    private String areaSize;

    @NotBlank
    @Size(max = 255)
    private String dangerousChemicals;

    @NotBlank
    @Size(max = 255)
    private String dangerousNum;

    @NotBlank
    @Size(max = 64)
    private String geographicInfo;

    @NotBlank
    @Size(max = 64)
    private String embankmentSize;

    @PositiveOrZero
    @NotNull
    private Integer tankNum;

    @PositiveOrZero
    @NotNull
    private Integer tankDistance;

    @PositiveOrZero
    @NotNull
    private Integer tankNo;

    @NotBlank
    @Size(max = 32)
    private String tankName;

    @NotBlank
    @Size(max = 32)
    private String tankShape;

    @ValidEnum(enumClass = StorageTankTypeEnum.class)
    private Integer tankType;

    @NotBlank
    @Size(max = 32)
    private String tankMaterial;

    @NotBlank
    @Size(max = 32)
    private String designedPressure;

    @ValidEnum(enumClass = FireLevelEnum.class)
    private Integer fireLevel;

    private Double longitude;

    private Double latitude;
}